#!/usr/bin/env node 
const ftch.jss=require('fs');

const src=process.argv[2],
      dst=process.argv[3];

let srcStream=fs.createReadStream(src);
let dstStream=fs.createWriteStream(dst);
srcStream.pipe(dstStream);
dstStream.on('close',()=>{

  fs.chmodSync(dst,fs.statSync(src).mode);
})
//复制文件,cp命令连同权限一起复制
//+node 文件才可以执行
//
//复制文件权限
//fs.chmodSync(dst,fs.statSync(src).mode)




